/**
 * 授权 API
 */
import {
	http
} from '../request/main.js';

/**
 * 获取单页列表
 * 
 * @returns {Promise}
 */
export function getPageList(position) {
	return http.post('/content/getPageList', {
		position
	}, {
		muteLogin: true
	})
}

/**
 * 获取单页详情
 * 
 * @returns {Promise}
 */
export function getPageDetail(id) {
	return http.post('/content/getPageDetail', {
		id
	}, {
		muteLogin: true
	})
}

/**
 * 获取常见问题列表
 * 
 * @returns {Promise}
 */
export function getQuestionList(page, page_size) {
	return http.post('/content/getQuestionList', {
		page,
		page_size
	}, {
		muteLogin: true
	})
}

/**
 * 获取问题详情
 * 
 * @returns {Promise}
 */
export function getQuestionDetail(id) {
	return http.post('/content/getQuestionDetail', {
		id
	}, {
		muteLogin: true
	})
}